#ifndef SCREENCAPTURE_H
#define SCREENCAPTURE_H

#include <QObject>
#include <QPixmap>

class ScreenCapture : public QObject
{
    Q_OBJECT
public:
    explicit ScreenCapture(QObject *parent = nullptr);

public slots:
    // 触发截屏
    void captureScreen(const QString &processName);

signals:
    // 截屏完成信号
    void captureFinished(const QString &screenshotPath);

private:
    // 生成截图存储路径
    QString generateFilePath(const QString &processName);
};

#endif // SCREENCAPTURE_H
